﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class D05_Vector3_5 : MonoBehaviour
{
    //AB的位置分别代表两个向量
    public Transform A, B;

    private void Update()
    {
        Debug.DrawLine(Vector3.zero, A.position, Color.red);
        Debug.DrawLine(Vector3.zero, B.position, Color.red);

        Vector3 cross = Vector3.Cross(A.position, B.position);//求叉乘向量
        Debug.DrawLine(Vector3.zero, cross, Color.green);
    }
}